package io.xiaojl.xj2ee.modules.sys;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.xiaojl.xj2ee.kit.SessionKit;
import io.xiaojl.xj2ee.modules.sys.entity.SysUserEntity;

/**
 * 
 * <p>Title: AbstractController</p>  
 *
 * <p>Description: Controller公共组件</p>  
 *
 * @author jilong.xiao  
 * @date 2018年5月28日
 */
public abstract class AbstractController {
	protected Logger logger = LoggerFactory.getLogger(getClass());
	
	protected SysUserEntity getUser() {
		return SessionKit.getCurrentUser();
	}

	protected Long getUserId() {
		return getUser().getUserId();
	}

	protected Long getDeptId() {
		return getUser().getDeptId();
	}
}